#include<string>
#include<iostream>
#include<mutex>
#include<cstdio>
#include<fstream>
#include <fcntl.h>
#include <unistd.h>
#include <sys/file.h>
#include<vector>
#include <semaphore.h>
#include <sys/stat.h>
#include<Recorder.h>
#include<functional>
class PRecorder:public Recorder{
public:
    PRecorder(std::string path);
    bool write(std::string name1, std::string name2, std::string key1, std::string val1, std::string key2, std::string val2, std::string key3, std::string val3);
    ~PRecorder();
    void writeEnd();
};